from ctypes import *

'''
#define DLLEXPORT extern "C" __declspec(dllexport)

#include "stdio.h"

DLLEXPORT wchar_t* sum(wchar_t *str, int b, float f) {

	static wchar_t a[] = L"你好,world";

	static wchar_t szBuffer[100];

	float x = b + f;

	swprintf(szBuffer, 255, L"%s,%s,%f", a, str, x);

	return szBuffer;

}
//-------------------- -
//作者：凯尔斯基
//来源：CSDN
//原文：https ://blog.csdn.net/kylett/article/details/84290853 
//版权声明：本文为博主原创文章，转载请附上博文链接！
'''
dll = CDLL('Project8.dll')
dll.sum.argtypes = [c_wchar_p, c_int, c_float]
dll.sum.restype = c_wchar_p
str = "ludc"
pchar = dll.sum(str, 1230, 3.215)
print(pchar)
